#ifndef USERDATA_H
#define USERDATA_H

#include <QObject>


class UserData : public QObject
{
public:
    explicit UserData(QObject *parent = 0);

    void setUserName(QString un);
    QString getUserName();

    // emphasis on hashed; password must be entered hashed
    void setHashedPassword(QString hashedPw);
    QString getHashedPassword();

    // TEST FUNCTION ONLY ! *****
    void setPrivilege(int);
    // **** REMOVE AFTER TEST

    bool isAdmin();

//signals:
    //void noPrivilegeSet(); //what is this for?

private:
    QString username;
    QString password;
    int privilege;      // 0 = normal user, 1 = admin
};

#endif // USERDATA_H
